package ooday01;

import java.awt.*;
//import java.nio.DirectByteBuffer;


public class TestCar {
    public static <DirectByteBuffer> void main(String[] args) {
        Car c=new Car();
        Car c2=new Car("青色","奔驰",350000.0);
        System.out.println("一辆"+c2.color+"的"+ c2.brand+"车"+",大概值"+c2.price);
        c2.start();
        c2.run();
        c2.stop();
        System.out.println("一辆"+c.color+"的"+ c.brand+"车"+",大概值"+c.price);
        Car car3=new Car("黑色","吉利",250000.00d);
        car3.start();
        car3.run();
        car3.stop();
        FourWheelCar fwc=new FourWheelCar();
        fwc.stop();
        //unsafe.allocateMemory
    }

}
